home *** CD-ROM | disk | FTP | other *** search
/ Libris Britannia 4 / science library(b).zip / science library(b) / ASTRONOM / H139.ZIP / UI101.ZIP / IO / DR / DR_SPEC.C < prev    next >
C/C++ Source or Header  |  1991-11-04  |  2KB  |  77 lines

  1. /*************************************************************************
  2.  
  3.     dr_spec.c       Directory (dr) subroutines
  4.             for Bywater Software.
  5.  
  6.             Specification file.
  7.  
  8.             Copyright (c) 1991, Ted A. Campbell
  9.  
  10.             Bywater Software
  11.             P. O. Box 4023 
  12.             Duke Station 
  13.             Durham, NC  27706
  14.  
  15.             email: tcamp@hercules.acpub.duke.edu
  16.  
  17.     Copyright and Permissions Information:
  18.  
  19.     All U.S. and international copyrights are claimed by the
  20.     author. The author grants permission to use this code
  21.     and software based on it under the following conditions:
  22.     (a) in general, the code and software based upon it may be 
  23.     used by individuals and by non-profit organizations; (b) it
  24.     may also be utilized by governmental agencies in any country,
  25.     with the exception of military agencies; (c) the code and/or
  26.     software based upon it may not be sold for a profit without
  27.     an explicit and specific permission from the author, except
  28.     that a minimal fee may be charged for media on which it is
  29.     copied, and for copying and handling; (d) the code must be 
  30.     distributed in the form in which it has been released by the
  31.     author; and (e) the code and software based upon it may not 
  32.     be used for illegal activities. 
  33.  
  34. **************************************************************************/
  35.  
  36. #include "dr.h"
  37.  
  38. /*************************************************************************
  39.  
  40.    dr_first()
  41.  
  42.    This function returns the first instance of a file matching an
  43.    ambiguous file specifier (TRUE) or FALSE if no matches are found.
  44.  
  45.    The argument "findb" is a pointer to a character string which
  46.    is the ambiguous file specifier.
  47.  
  48.    The argument "retb" is a pointer to a character buffer where
  49.    the returned value (if TRUE) will be written.
  50.  
  51. **************************************************************************/
  52.  
  53. dr_first( findb, retb )
  54.     char findb[];
  55.     struct dir_ent *retb;
  56.     {
  57.     }
  58.  
  59. /*************************************************************************
  60.  
  61.    dr_next()
  62.  
  63.    This function returns the next instance of a file matching the
  64.    ambiguous file specifier previously supplied to dr_first(TRUE),
  65.    or FALSE if no further matches are found.
  66.  
  67.    The argument "retb" is a pointer to a character buffer where
  68.    the returned value (if TRUE) will be written.
  69.  
  70. **************************************************************************/
  71.  
  72. dr_next( retb )
  73.     struct dir_ent *retb;
  74.     {
  75.     }
  76.  
  77.